package org.dromara.retail.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.retail.domain.CrmSaleReport;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 销售日报业务对象 crm_sale_report
 *
 * @author Lion Li
 * @date 2024-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CrmSaleReport.class, reverseConvertGenerate = false)
public class CrmSaleReportBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 销售日期
     */
    @NotNull(message = "销售日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date saleTime;

    /**
     * 备用金
     */
    @NotNull(message = "备用金不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal spareMoney;

    /**
     * 销售收入
     */
    @NotNull(message = "销售收入不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal saleMoney;

    /**
     * 其他收入
     */
    private BigDecimal otherMoney;

    /**
     * 货款支出
     */
    private BigDecimal goodsMoney;

    /**
     * 代付款
     */
    private BigDecimal agentMoney;

    /**
     * 其他支出
     */
    private BigDecimal otherExpenditure;

    /**
     * 银行存款
     */
    @NotNull(message = "银行存款不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal bankMoney;

    /**
     * 支出
     */
    private BigDecimal expenditure;

    /**
     * 理论结余
     */
    private BigDecimal balance;

    /**
     * 实收现金
     */
    private BigDecimal money;

    /**
     * 毛利率
     */
    private BigDecimal grossProfitMargin;

    /**
     * 销售利润
     */
    @NotNull(message = "销售利润不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal saleProfit;

    /**
     * 毛利润
     */
    private BigDecimal grossProfit;

    /**
     * 结算差异
     */
    private BigDecimal difference;



}
